# encoding = utf-8
class Info < ActiveRecord::Base
  belongs_to :user
  belongs_to :building

  validates :name, :presence  => true
  validates :gender, :presence  => true
  validates :phone, :presence  => true
  validates :building_id, :presence  => true
  validates :company_name, :presence  => true
  validates :floor, :presence  => true

  def tower!
    if self.tower.blank?
      ''
    else
      self.tower
    end
  end
end
